﻿<UserControl x:Class="OutputView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">
    <Grid>
        <ListBox ItemsSource="{Binding Path=Pwms}" HorizontalContentAlignment="Stretch">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="20"/>
                        </Grid.RowDefinitions>
                        <StackPanel Orientation="Horizontal" Grid.Row="0">
                            <TextBlock Text="Pwm "/>
                            <TextBlock Text="{Binding Path=PwmID}"/>
                        </StackPanel>
                        <ProgressBar Value="{Binding Path=NormalizedValue}" Minimum="-1" Maximum="1" Grid.Row="1"/>
                    </Grid>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</UserControl>
